<template>
  <div class="app-container">
    <data-dict-editor :code="dataDictCode" :name="dataDictName" />
  </div>
</template>

<script>
export default {
  components: {},

  data() {
    return {
      dataDictCode: '',
      dataDictName: ''
    }
  },
  watch: {
    $route(to, from) {
      this.dataDictCode = to.meta.dataDict
      this.dataDictName = to.meta.title
    }
  },
  created() {
    this.dataDictCode = this.$route.meta.dataDict
    this.dataDictName = this.$route.meta.title
  },
  methods: {

  }
}
</script>
<style lang="scss" >

</style>

